package com.lin.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ author:lin tingfeng
 * @ data:2021/10/10-17:30
 */
@Configuration
public class LinRule {

    @Bean
    public IRule myRule() {
        return new LinRandomRule();
    }

}
